<!-- /* Description for file.
 * 明细信息
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/users
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0722
 * @lastmodified  张海杰2011年0722
 */
 -->
 
 <?php
echo $html->css ( 'style' );
echo $javascript->link('jquery');
echo $javascript->link('jquery-1.4.2');
echo $html->css('start/jquery-ui-1.8.2.custom'); 
echo $javascript->link('jquery-ui-1.8.2.custom.min');

?>

<script type="text/javascript">
	$(function(){
		$(".datepickerSpan :input").datepicker({
			inline: true
		});
		 $('.datepickerSpan :input').datepicker('option', {dateFormat: "yy-mm-dd"});
		 $('.datepickerSpan :input').datepicker( "option", "closeText", 'X' );
		 $("#appointPayTime").val("<?php echo $data['Feebill']['appointPayTime'];?>");
	});
</script>

<script type="text/javascript">
  var message="<?php echo $message;?>";
  if(message!="")
  {
	window.opener.tablereload(message);
 	window.close();
  }
</script>

<script type="text/javascript">
	function mycheck() {
		$("#FeebillEditForm").submit();	
	}
</script>
 <script type="text/javascript">
	$(function()
	{
		$("#close").click(function(){		
			window.close();							
		});
	});
</script>

<?php echo $form->create('Feebill',array('action'=>'edit','type'=> 'post'));?>
<?php echo $form->hidden('feeitem_id',array('default'=>$id));?>
<?php echo $form->hidden('id',array('default'=>$data['Feebill']['id']));?>
<?php echo $form->hidden('companyName',array('default'=>$feebills['Feelist']['company']));?>
<?php echo $form->hidden('projectCode',array('default'=>$feebills['Feelist']['projectCode']));?>
<?php echo $form->hidden('scheduleid',array('default'=>$data['Feebill']['scheduleid']));?>
<div class="tabflex">
<fieldset><legend>明细信息</legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	style="text-align: left">
	<tr>
	<td width="100"></td>
	<td width="70">公司名称</td>
	<td width="300"><?php echo $form->input('Feelist.companyName',array('default' =>$feebills['Feelist']['company'],'class' => 'TextBoxE3','div'=>false,'label'=>false,'disabled'=>true));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="70">总费用</td>
	<td width="300"><?php echo $form->input('Feelist.chargeAmount',array('default' =>$feebills['Feelist']['chargeAmount'],'class' => 'TextBoxE3','div'=>false,'label'=>false,'disabled'=>true));?></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70">已付款</td>
	<td width="300"><?php echo $form->input('Feelist.paidAmount',array('default' =>$feebills['Feelist']['paidAmount'],'class' => 'TextBoxE3','div'=>false,'label'=>false,'disabled'=>true));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="70">未付款</td>
	<td width="300"><?php echo $form->input('Feelist.unpaidAmount',array('default' =>$feebills['Feelist']['unpaidAmount'],'class' => 'TextBoxE3','div'=>false,'label'=>false,'disabled'=>true));?></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70">金额</td>
	<td width="300"><?php echo $form->input('chargeAmount',array('default' =>$data['Feebill']['chargeAmount'],'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="70">收款笔次</td>
	<td width="300"><?php echo $form->input('feeSequence',array('default' =>$data['Feebill']['feeSequence'],'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70"></td>
	<td width="300">
	<?php $options=array('0'=>'未付','1'=>'已付'); 
	 echo $form->radio('ispay',$options,array('default' =>$data['Feebill']['ispay'],'legend'=>false)); ?>
	</td>
	<td ></td>
	<td width="50"></td>
	<td width="70"></td>
	<td width="300"></td>
	<td></td>
	</tr>
	<tr>
	<td width="100"></td>
	<td width="70">提醒人</td>
	<td width="300"><?php echo $form->input('remindMan',array('options'=>$op,'default' =>$data['Feebill']['remindMan'],'class' => 'TextBoxE3','div'=>false,'label'=>false));?></td>
	<td ></td>
	<td width="50"></td>
	<td width="70">提醒时间</td>
	<td width="300">
	<?php echo $form->input('remindBefore',array('default' =>$data['Feebill']['remindSpacing'],'class' => 'TextBoxS','div'=>false,'label'=>false));?>天
	<?php echo $form->input('remindSpacing',array('default' =>$data['Feebill']['remindSpacing'],'class' => 'TextBoxS','div'=>false,'label'=>false));?>分钟
	</td>
	<td></td>
	</tr>
	
	<tr>
	<td width="100"></td>
	<td width="100">约定付款时间</td>
	<td width="300">
	<span class="datepickerSpan">
		<?php 
			echo $form->input('appointPayTime',array('default' =>$data['Feebill']['appointPayTime'],'id'=>"appointPayTime",'label'=>false,'div'=>false,'class' => 'TextBoxE3'));
		?>
	</span>
	</td>
	<td ></td>
	<td width="50"></td>
	<td width="70"></td>
	<td width="300"></td>
	<td></td>
	</tr>
	
	<tr>
	<td width="100"></td>
	<td width="70" style="vertical-align:top;">明细备注</td>
	<td colspan="6"><?php echo $form->textarea('memo',array('default' =>$data['Feebill']['memo'],'class' => 'TextArea txtOut','label'=>false));?></td>
	</tr>
</table>
</fieldset>

	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('确定',array('type'=>'button','class'=>'oksubmit','onclick'=>'mycheck()'));?>  <!-- __('reset', true)取消-->
		<td width="100"><?php echo $form->button('关闭',array('class'=>'cancelbutton','id'=>'close'));?>  <!-- __('reset', true)取消-->
		</td>
	</tr>
</table>
</div>
<?php echo $form->end();?>


